How to print the following sequence in MATLAB